package com.zzzy.schedule;

import org.apache.log4j.Logger;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class OrderSchedule extends QuartzJobBean {
	
	protected final Logger logger=Logger.getLogger(this.getClass());
	private int count=0;
	private int timeout;
	
	public OrderSchedule() {
		
		logger.debug(" OrderSchedule create ..." );
	}
	
	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}
	
	@Override
	protected void executeInternal(org.quartz.JobExecutionContext arg0) 
			throws org.quartz.JobExecutionException {
		
		logger.debug(" quartz OrderSchedule" + count++);
	};
}
